<template>
  <el-container class="background">
    <el-header>
      <el-row :gutter="20">
        <el-col :span="4">
          <div class="icon">
            <img style="margin-top: 20px"
                 src="https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/e08da34488b114bd4c665ba2fa520a31.svg">
          </div>
        </el-col>
        <el-col :span="16">
          <div class="title">
            DLY聊天系统
          </div>
        </el-col>
        <el-col :span="4">
          <div class="help">
            <span>联系我们</span>
            <el-icon>
              <Promotion/>
            </el-icon>
          </div>
        </el-col>
      </el-row>
    </el-header>
    <el-main class="background">
      <router-view/>
      <div class="box">
        <div class="frosted__glass">
          <div>
            <div>
              <span>测试账号(超级管理员):</span>
              <span>账号118143 密码123456</span>
            </div>
            <div>
              <span>测试账号(管理员):</span>
              <span>账号118142 密码118143</span>
            </div>
          </div>
        </div>
      </div>
    </el-main>
  </el-container>
</template>

<script lang="ts" setup>
import {onMounted} from "vue";
import {clear} from "../../../utils/constant";

onMounted(()=>{
  clear()
})
</script>

<style scoped>

.icon {
  height: 75px;
}

.title {
  font-size: 50px;
  font-family: Simsun;
  margin-top: 8px;
  color: black;
}

.help {
  font-size: 25px;
  font-family: Simsun;
  margin-top: 18px;
  color: black;
}

.el-header {
  text-align: center;
  height: 75px;
  background-color: #e3e3e3;
  opacity: 0.6;
}

.background {
  margin: 0px;
  background: url('../../../../public/background1.jpg') no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  height: 100%;
  overflow-x: hidden;
}

.box {
  margin-top: 100px;
  margin-left: 40px;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: 100%;
  background-position: center;
}

.frosted__glass {
  width: 60%;
  height: 100%;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  letter-spacing: 0.5em;
  backdrop-filter: blur(20px);
  color: #fff;
  box-shadow: 0 0 30px 10px rgba(0, 0, 0, .3);
  flex-wrap: wrap;
}

</style>